#pragma once

#include "SmartEnum.h"

BEGIN_ENUM(Dim)
	X, Y, Z
END_ENUM(Dim)

inline bool isValidDim(Dim dim)
{
    return dim >= Dims::X && dim <= Dims::Z;
}

inline Dim nextDim(Dim dim, int step=1)
{
    return Dim((int(dim) + step) % (Dims::Z + 1));
}
